<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
        <ul class="navbar-nav mr-auto">
            @if(session('module'))
                <li class="nav-item mr-2">
                    <a class="nav-link" href="/{{session('module')['name']}}/admin">
                        <i class="fa fa-address-book " aria-hidden="true"></i>继续管理 {{session('module')['title']}} 模块
                    </a>
                </li>
            @endif
            <li class="nav-item mr-2">
                <a class="nav-link" href="{{route('admin')}}">
                    <i class="fa fa-address-book " aria-hidden="true"></i>站点管理
                </a>
            </li>
            <li class="nav-item mr-2">
                <a class="nav-link" href="{{route('admin.module.index')}}">
                    <i class="fa fa-bank " aria-hidden="true"></i>模块管理
                </a>
            </li>

            <li class="nav-item mr-2">
                <a class="nav-link" href="{{ route('admin.config.edit') }}">
                    <i class="fa fa-sitemap " aria-hidden="true"></i>系统设置
                </a>
            </li>
            <li class="nav-item mr-2">
                <a class="nav-link" href="{{route('admin.group.index')}}">
                    <i class="fa fa-users " aria-hidden="true"></i>会员组
                </a>
            </li>

        </ul>
        <div class="dropdown form-inline my-2 my-lg-0">
            <div class="text-white dropdown-toggle btn" id="dropdownMenuButton" data-toggle="dropdown"
                 aria-haspopup="true" aria-expanded="false">
                {{ user('name') }}
            </div>
            <div class="dropdown-menu dropdown-menu-left dropdown-menu-sm-right" aria-labelledby="dropdownMenuButton">
                <a class="dropdown-item" href="{{route('admin.setting')}}">会员中心</a>
                <a class="dropdown-item" href="{{route('admin.my.edit')}}">修改密码</a>
                <a class="dropdown-item" href="{{route('logout')}}">退出登录</a>
            </div>
        </div>
    </div>
</nav>
